package com.jqbd.pojo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author yangl
 * @version 1.0
 * @date 2022/11/9 9:56
 */

@Data
public class Admin {
    @ExcelProperty("id")
    private Integer adminId;
    @ExcelProperty("管理员")
    private String adminName;
    @ExcelProperty("密码")
    private String adminPassword;
    @ExcelProperty("头像")
    private String adminAvatar;
    @ExcelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @ExcelProperty("状态")
    private Integer status;

    @Override
    public String toString() {
        return "Admin{" +
                "adminId=" + adminId +
                ", adminName='" + adminName + '\'' +
                ", adminPassword='" + adminPassword + '\'' +
                ", adminAvatar='" + adminAvatar + '\'' +
                ", createTime=" + createTime +
                ", status=" + status +
                '}';
    }
}
